package service;

import entity.Seat;
import entity.Train;
import entity.User;
import untils.Msg;

import java.util.ArrayList;

public interface AdminService extends BaseService{
    /**
     * 查询所有用户数据
     *
     * @return 返回一个Msg对象，包含用户数据列表的ArrayList<User>
     */
    Msg<ArrayList<User>> findAllUserData();

    Msg deleteUserData(int id);

    Msg<User> addUserData(User user1);

    Msg updateTrainsDao(Train train);

    Msg<Seat> updateSeatData(String type,Seat seat);

    Msg<ArrayList<User>> findAllAdminData();

    int findUserByPhone(String phone);

    void addAdminData(int userId);

    void deleteAdminData(int userId);

    void importOrdersList();

    void importTrainList();

    void importTrainList(String path);

    void importSeatList(String path);

}
